package com.wanmait.recruit.mapper;

import com.wanmait.recruit.pojo.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    Admin login(Admin admin);
    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);
    Admin findAdminByName(String username);
    List<Admin> findByName(String username);

    Admin findById(Integer id);

    int deleteById(Integer id);

    int updatePassword(@Param("id")Integer id ,@Param("passWord") String passWord);


}